Canonical issues arise when 301 redirects are not working properly. This means that if you do not decide on this problem with your different URLs of the website, then the search engine will list your website with different URLs, as a result your website looks like duplicate content.
For example you have a website with name www.fastread.in this website can be open with following different url.
- http://fastread.in
- http://www.fastread.in
- http://fastread.in/index.html
- http://www.fastread.in/index.html
How to Remove Canonical Issue
To remove this problem redirect all urls on single url. Some methods to solve this problem are given below;
Create .htaccess File
Redirect WWW to non-WWW
RewriteEngine on
rewritecond %{http_host} fastread.in [nc]
rewriterule ^(.*)$ http://fastread.in/$1 [r=301,nc]
Redirect non-WWW to WWW
RewriteEngine on
rewritecond %{http_host} fastread.in [nc]
rewriterule ^(.*)$ http://www.fastread.in/$1 [r=301,nc]
.htaccess: This file is mainly used for redirect url, to create this file you can create any file and save with .htaccess file name.
Note: You can also redirect using cpanel.